import request from '@/libs/axios'

export const addArticleApi = (data) => {
  return request({
    url: '/blog/article/article',
    data,
    method: 'POST'
  }).then(res => res ? res.data : [])
}

export const updateArticleApi = (data) => {
  return request({
    url: '/blog/article/article',
    data,
    method: 'PUT'
  }).then(res => res ? res.data : [])
}
